﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coldairarrow.Entity.Interface
{
    /// <summary>
    /// 亚马逊订单
    /// </summary>
    /// 

    public class Shopify_MSKUDTO
    {
        public string code { get; set; }
        public string message { get; set; }
        public string request_id { get; set; }
        public string response_time { get; set; }
        public int total { get; set; }
        public Shopify_MSKU_data data { get; set; }

    }
    public class Shopify_MSKU_data
    {
        /// <summary>
        /// 总数
        /// </summary>
        public string count { get; set; }

        /// <summary>
        /// 商品列表
        /// </summary>
        public List<Shopify_MSKU> list { get; set; }


    }

    public class Shopify_MSKU
    {
        public string ID { get; set; }
        public string RowId { get; set; }

        /// <summary>
        /// 重量
        /// </summary>
        public string weight { get; set; }

        /// <summary>
        /// 商品ID
        /// </summary>
        public string item_id { get; set; }
        /// <summary>
        /// 商品链接
        /// </summary>
        public string item_url { get; set; }
        /// <summary>
        /// 产品uid
        /// </summary>
        public string product_unique_id { get; set; }
        /// <summary>
        /// 子体uid
        /// </summary>
        public string variant_unique_id { get; set; }
        /// <summary>
        /// 企业Id
        /// </summary>
        public string company_id { get; set; }
        /// <summary>
        /// 父图链接
        /// </summary>
        public string parent_picture_url { get; set; }
        /// <summary>
        /// 	图片链接
        /// </summary>
        public string picture_url { get; set; }
        /// <summary>
        /// 父MSKU
        /// </summary>
        public string parent_msku { get; set; }
        /// <summary>
        /// MSKU
        /// </summary>
        public string msku { get; set; }
        /// <summary>
        /// 母体属性
        /// </summary>
        public string parent_attribute { get; set; }
        /// <summary>
        /// 变体属性
        /// </summary>
        public string attribute { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// SKU
        /// </summary>
        public string local_sku { get; set; }
        /// <summary>
        /// 本地商品id
        /// </summary>
        public string pid { get; set; }
        /// <summary>
        /// 品名
        /// </summary>
        public string local_name { get; set; }
        /// <summary>
        /// 店铺Id
        /// </summary>
        public string store_id { get; set; }
        /// <summary>
        /// 店铺名称
        /// </summary>
        public string store_name { get; set; }
        /// <summary>
        /// 售价
        /// </summary>
        public string price { get; set; }
        /// <summary>
        /// 库存
        /// </summary>
        public string quantity { get; set; }
        /// <summary>
        /// 货币图标
        /// </summary>
        public string currency_icon { get; set; }
        /// <summary>
        /// 是否有子体
        /// </summary>
        public string has_variant { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public string listing_start_time { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public string listing_end_time { get; set; }
        /// <summary>
        /// 商品状态
        /// </summary>
        private string status_name_;
        public string status_name
        {

            get
            {
                return status_name_;
            }

            set
            {
                if (value == "active") status_name_ = "在售";
                else if (value == "draft") status_name_ = "草案";
                else if (value == "archived") status_name_ = "已下架";
                else if (value == "deleted") status_name_ = "已删除";
                else status_name_ = value;

            }

        }
        /// <summary>
        /// 库存策略
        /// </summary>
        public string inventory_policy_name { get; set; }
        /// <summary>
        /// 商品分类名
        /// </summary>
        public string type_name { get; set; }
        /// <summary>
        /// 是否需要运输
        /// </summary>
        public string requires_shipping { get; set; }
        /// <summary>
        /// 出售产品变体时是否要征税
        /// </summary>
        public string taxable { get; set; }
        /// <summary>
        /// 最小重量
        /// </summary>
        public string min_weight { get; set; }
        /// <summary>
        /// 最大重量
        /// </summary>
        public string max_weight { get; set; }
        /// <summary>
        /// 重量单位
        /// </summary>
        public string weight_unit { get; set; }

        /// <summary>
        /// 平台
        /// </summary>
        public string Platform { get; set; }


    }

}
